package com.woniuxy.sddfp.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @author yellow Docter
 * @date 2024-11-13
 * @desc 蜗牛创想：www.woniuxy.com
 *
 * @SpringBootApplication 这个注解中
 *       扫描的 ComponentScan 这个注解 默认扫描 当前的包和子包
 *       异常类的全局处理在 common 里面不能扫描
 *  解决办法:
 *      自己配置扫描
 */
@ComponentScan({
      "com.woniuxy.sddfp.system", "com.woniuxy.sddfp.common"
})
@MapperScan("com.woniuxy.sddfp.system.mapper")
@SpringBootApplication
public class SystemApplication {

    public static void main(String[] args) {

        SpringApplication.run(SystemApplication.class, args);

    }

}
